ArrayBuffer.prototype.split = function (sep) {
  let len = Buffer.from(sep).length;
  let ret = [];
  let start = 0;
  let offset = 0;

  while ((offset = this.indexOf(sep, start) !== -1)) {
    ret.push(this.slice(start, offset));
    start = offset + len;
  }

  ret.push(this.slice(start));
  return ret;
};

let buf = "myf爱node，爱拉勾教育，爱大家，我爱所有";
let bufArr = buf.split("爱");
console.log(bufArr);
